//
//  NSDictionary+RWAdditions.h
//  Alumna
//
//  Created by ray on 2021/11/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


@interface NSDictionary (RWAdditions)

- (NSString *)rw_stringForKey:(id)key;

- (NSNumber *)rw_numberForKey:(id)key;

- (NSArray *)rw_arrayForKey:(id)key;

- (NSDictionary *)rw_dictionaryForKey:(id)key;

- (NSInteger)rw_integerForKey:(id)key;

- (BOOL)rw_boolForKey:(id)key;

- (CGFloat)rw_floatForKey:(id)key;

- (double)rw_doubleForKey:(id)key;

- (long long)rw_longLongForKey:(id)key;

/// 过滤value包含NSNull、空字符串的键值对
/// return一个新的字典
- (NSDictionary *)rw_filterValidValue;

@end

NS_ASSUME_NONNULL_END
